package cn.itcast.service.impl;

import cn.itcast.entity.User;
import cn.itcast.mapper.IUserMapper;
import cn.itcast.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private IUserMapper userMapper;
    @Override
    public User findByPhone(String phone) {
        User user = userMapper.findByPhoneNum(phone);
        return user;
    }
}
